import { createRouter, createWebHistory } from 'vue-router'
import A1 from '@/views/login/a1.vue'
import A2 from '@/views/login/a2.vue'
import A3 from '@/views/login/a3.vue'
import A4 from '@/views/login/a4.vue'

import loginView from '@/views/login/login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: loginView,
      children: [
        {
          path: '/A1',
          name: 'A1',
          component: A1,
        },
        {
          path: '/A2',
          name: 'A2',
          component: A2,
        },
        {
          path: '/A3',
          name: 'A3',
          component: A3,
        },
        {
          path: '/A4',
          name: 'A4',
          component: A4,
        },
      ]
    },

  ],
})

export default router
